package consts

const (
	Version                  = "v0.2.0"             // 当前服务版本(用于模板展示)
	CaptchaDefaultName       = "CaptchaDefaultName" // 验证码默认存储空间名称
	ContextKey               = "ContextKey"         // 上下文变量存储键名，前后端系统共享
	FileMaxUploadCountMinute = 10                   // 同一用户1分钟之内最大上传数量
	UserLoginUrl             = "/admin/login"
	StatusEnable             = 1
	StatusDisEnable          = 0
	LoginUniqueKey           = "LoginUniqueKey"
	DefaultBackendPrefix     = "/admin"

	//for 登录相关
	TokenType            = "Bearer"
	CacheModeRedis       = 2
	FrontendServerName   = "Api接口"
	MultiLogin           = true
	FrontendMultiLogin   = true
	GTokenExpireIn       = 10 * 24 * 60 * 60
	ErrLoginFaultMsg     = "登录失败，非法的微信Code"
	GTokenFrontendPrefix = "User:" //gtoken登录 Api前缀

	//for user
	CtxUserId     = "CtxUserId"
	CtxUserName   = "CtxUserName"
	CtxUserAvatar = "CtxUserAvatar"
	CtxUserStatus = "CtxUserStatus"
)
